package com.aacar.dao.impl;

import com.aacar.dao.WasherOrderDao;
import com.aacar.dao.WasherOrderDao;
import com.aacar.dao.base.CommonBaseDao;
import com.aacar.dto.WasherOrderListDto;
import com.aacar.entity.Order;
import com.aacar.utils.Page;
import com.aacar.vo.WasherOrderDetailVo;
import com.aacar.vo.WasherOrderListVo;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("washerOrderDao")
public class WasherOrderDaoImpl extends CommonBaseDao<Order, String> implements WasherOrderDao {

	private static final String nameSpace = "com.aacar.dao.WasherOrderDao.";


	@Override
	public Page getWasherOrderListCount(WasherOrderListDto WasherOrderListDto) {
		return this.getSqlSession().selectOne(nameSpace.concat("getWasherOrderListCount"), WasherOrderListDto);
	}

	@Override
	public List<WasherOrderListVo> getWasherOrderListPage(WasherOrderListDto WasherOrderListDto) {
		return this.getSqlSession().selectList(nameSpace.concat("getWasherOrderListPage"), WasherOrderListDto);
	}

	@Override
	public WasherOrderDetailVo getWasherOrderDetail(String orderNo) {
		return this.getSqlSession().selectOne(nameSpace.concat("getWasherOrderDetail"), orderNo);
	}

	
}
